@/*
    radio标签中各个参数的说明:
    name : radio的名称
    id : radio的id
    code : 字典的code
    map : 选项map 示例：{'1':'目录','2':'菜单','3':'权限'};
    underline : 是否带分割线
@*/
@var defaultVal = null;
<div class="form-group">
	@if(!isEmpty(name)){
	<label class="lab">${name}</label>
	@}
    <div class="ele ${isEmpty(name)?'ele-fit':''}">
        	@var _map = {};
			@if(!isEmpty(map)){
				@_map = map;
			@}
			@if(!isEmpty(code)){
				@_map = getDictsByCode(code);
			@}
			@for(ele in _map){
				@if((ele.key+'')==(value!''+'')){
				@	defaultVal=ele.key;
				@}
				<input type="radio" id="${id}_${eleLP.index}" name="${id}" value="${ele.key}"  class='hisui-radio' ></input>
        		<label for="${id}_${eleLP.index}">${ele.value}
        		</label>
			@}
		@if(isNotEmpty(tips)){
	        <span class="help-block m-b-none">${tips!}</span>
		@}
    </div>
</div>
@if(isNotEmpty(underline) && underline == 'true'){
    <div class="hr-line-dashed"></div>
@}
@//checked 竟然不起作用，真但蛋疼
@if(isNotEmpty(defaultVal)){
<script type="text/javascript">
setTimeout(function(){
	$HUI.radio("input[value='${defaultVal}'][name='${id}']").setValue(true);
},300)
</script>
@}


